package cn.sdstudio.mapper;

import cn.sdstudio.entity.RelicItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.sdstudio.vo.FavoriteVO;
import cn.sdstudio.entity.Collect;
import org.apache.ibatis.annotations.*;
import java.util.List;

public interface RelicItemMapper extends BaseMapper<RelicItem> {

    int addCollect(Collect collect);

    List<FavoriteVO> getMyCollect(int userid);

    int deleteFavorite(@Param("id") int id, @Param("user_id") int userid);
}